﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoDB.Bson;

namespace QuotationService.HistoryQuotation
{
    /// <summary>
    /// 历史Tick数据类
    /// </summary>
    internal class FutureTickInfo
    {
        public ObjectId _id;

        #region 属性（数据）

        /// <summary>
        /// Tick序号
        /// </summary>
        public Int32 TickSN { get; set; }

        /// <summary>
        /// 成交时间
        /// </summary>
        public Int32 KnockTime { get; set; }

        /// <summary>
        /// 成交价格
        /// </summary>
        public double KnockPrice { get; set; }

        /// <summary>
        /// 成交数量
        /// </summary>
        public Int64 KnockQty { get; set; }

        /// <summary>
        /// 成交金额
        /// </summary>
        public double KnockAmt { get; set; }

        /// <summary>
        /// 最高价
        /// </summary>
        public double HighPrice { get; set; }

        /// <summary>
        /// 最低价
        /// </summary>
        public double LowPrice { get; set; }

        /// <summary>
        /// 涨跌值
        /// </summary>
        public double Diff { get; set; }

        /// <summary>
        /// 涨跌幅
        /// </summary>
        public double DiffRate { get; set; }


        /// <summary>
        /// 总成交数量
        /// </summary>
        public Int64 TotalKnockQty { get; set; }


        /// <summary>
        /// 总成交金额
        /// </summary>
        public double TotalKnockAmt { get; set; }

        /// <summary>
        /// 成交均价
        /// </summary>
        public double KnockAvgPrice { get; set; }

        /// <summary>
        /// 总买量
        /// </summary>
        public Int64 TotalBuyQty { get; set; }

        /// <summary>
        /// 总买差量
        /// </summary>
        public Int64 TotalBuyQtyDiff { get; set; }

        /// <summary>
        /// 总卖量
        /// </summary>
        public Int64 TotalSellQty { get; set; }

        /// <summary>
        /// 总卖差量
        /// </summary>
        public Int64 TotalSellQtyDiff { get; set; }

        /// <summary>
        /// 委差
        /// </summary>
        public Int64 VolumeDiff { get; set; }

        /// <summary>
        /// 委比
        /// </summary>
        public double VolumeRate { get; set; }


        /// <summary>
        /// 当前持仓
        /// </summary>
        public Int64 OpenPosition { get; set; }

        /// <summary>
        /// 仓差
        /// </summary>
        public Int64 PositDiff { get; set; }

        /// <summary>
        /// 买卖性质
        /// </summary>
        public string BSType { get; set; }
        #endregion

    }
}
